package org.zjx.repository;


import org.zjx.model.prop.ItemInstance;

import java.util.List;
import java.util.Optional;

public interface ItemInstanceRepository {
    Optional<ItemInstance> findById(int instanceId);
    List<ItemInstance> findByPlayerId(String playerId);  // 新增方法
    List<ItemInstance> findAllById(List<Integer> instanceIds);
    ItemInstance save(ItemInstance instance);
    boolean update(List<ItemInstance> itemInstances);
    void delete(int instanceId);
}